<div class="featured">
<p class="blue fnt-20">Recommendations for you</p>
	<div class="JMyCarousel">
	   <ul>
<?php	
	$sqlSelPro="SELECT tbl_product.* FROM tbl_product WHERE show_on_home=1 ORDER BY RAND() DESC";
	$rstSelPro=mysql_query($sqlSelPro);
	$numSelPro=mysql_num_rows($rstSelPro);
	if($numSelPro > 0) 
	{
		$i=1;
		while($rowSelPro = mysql_fetch_array($rstSelPro)) 
		{ 
			$cat = getCategory($rowSelPro['category_id']);
			$proPrice = $rowSelPro['product_price'];
			$pimage = getProductImage($rowSelPro['product_id'],'p');

			if($pimage['thumb']=="") 
			{
				$image = "images/no_image.gif";	
			} 
			else 
			{ 
				$image = $pimage['thumb'];
			}
?>
			<li><a href="index.php?products=<?php echo $rowSelPro['item_id']; ?>"><img src="<?php echo $image; ?>" border="0" width="80" height="80">
				<?php echo $rowSelPro['product_name']; ?></a><span class="price"><?php echo "$".number_format($proPrice,2);?></span></li>
<?php
	$i++;
		}
?></ul>     
<?php  } else { echo "<ul><li>No products found.</li></ul>"; } ?>
	</div>
</div>